SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 41992: The variance for the Beta and Negative Binomial distributions is incorrectly computed in PROC GLIMMIX

DetailsAboutRate It

Even though the formulas presented in the GLIMMIX chapter of the SAS/STAT User's Guide, Version 9 are correct, the variance for the Beta and Negative Binomial distribution is incorrectly computed in the GLIMMIX procedure.

In general the GLIMMIX procedure computes Var(Y) using the formula,

   Var(Y)=scale*vf, 

where vf is the variance function.

For example, the variance of the Gamma distribution is

   Var(Y)=Φu²,Φ > 0. 

Here the scale parameter = Φ, and the vf=u².

The GLIMMIX procedure does not handle the Beta and Negative Binomial distributions differently and computes the Var(Y) = scale*vf as usual and is incorrect. Since Var(Y) is the denominator in the PEARSON residual, the PEARSON residual is also incorrectly computed.

For the Beta and Negative Binomial distribution there is an extra parameter in the variance function that is treated as a “scale” parameter by GLIMMIX. The variance function of the Beta distribution is defined as follows:

   Var(Y) = μ(1-μ)/(1 + Φ), Φ > 0

where Φ is treated as a scale parameter by the GLIMMIX procedure for the Beta distribution.

The variance function of the Negative Binomial distribution is defined as follows:

   Var(Y) = μ + ku², k > 0

where k is treated as scale parameter by the GLIMMIX procedure for the Negative Binomial distribution.

Note that Φ and k are not “scale” parameters in the context of the Var(Y)computation because they cannot be factored out in the formula of Var(Y). In other words, Var(Y)=vf is the correct way to compute the variance for the Beta and Negative Binomial distribution.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS/STATWindows 7 Ultimate 32 bit9.229.229.2 TS2M39.3 TS1M0
Windows 7 Professional x649.229.229.2 TS2M39.3 TS1M0
Windows 7 Professional 32 bit9.229.229.2 TS2M39.3 TS1M0
Windows 7 Home Premium x649.229.229.2 TS2M39.3 TS1M0
Windows 7 Home Premium 32 bit9.229.229.2 TS2M39.3 TS1M0
Windows 7 Enterprise x649.229.229.2 TS2M39.3 TS1M0
Windows 7 Enterprise 32 bit9.229.229.2 TS2M39.3 TS1M0
Microsoft Windows XP Professional9.229.229.2 TS2M39.3 TS1M0
Microsoft Windows Server 2008 for x649.229.229.2 TS2M39.3 TS1M0
Microsoft Windows Server 20089.229.229.2 TS2M39.3 TS1M0
Microsoft Windows Server 2003 for x649.229.229.2 TS2M39.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.229.229.2 TS2M39.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.229.229.2 TS2M39.3 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.229.229.2 TS2M39.3 TS1M0
Microsoft® Windows® for x649.229.229.2 TS2M39.3 TS1M0
Microsoft Windows XP 64-bit Edition9.229.229.2 TS2M39.3 TS1M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.229.229.2 TS2M39.3 TS1M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.229.229.2 TS2M39.3 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9.229.229.2 TS2M39.3 TS1M0
z/OS9.229.229.2 TS2M39.3 TS1M0
Windows 7 Ultimate x649.229.229.2 TS2M39.3 TS1M0
Windows Vista9.229.229.2 TS2M39.3 TS1M0
Windows Vista for x649.229.229.2 TS2M39.3 TS1M0
64-bit Enabled AIX9.229.229.2 TS2M39.3 TS1M0
64-bit Enabled HP-UX9.229.229.2 TS2M39.3 TS1M0
64-bit Enabled Solaris9.229.229.2 TS2M39.3 TS1M0
HP-UX IPF9.229.229.2 TS2M39.3 TS1M0
Linux9.229.229.2 TS2M39.3 TS1M0
Linux for x649.229.229.2 TS2M39.3 TS1M0
OpenVMS on HP Integrity9.229.229.2 TS2M39.3 TS1M0
Solaris for x649.229.229.2 TS2M39.3 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.